<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  
    <title>My JSP 'zhuye.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <style type="text/css">
      #div1{
        border:1px; width:100px; 
        vertical-align:buttom ;
        text-align:rigth; 
        background-image:url(images/portal_icon.png) ; 
        background-repeat:no-repeat; 
        margin-left:50px;
        padding-lfet:50px;
        position:absolute;
      }
A:link{color: #000000; TEXT-DECORATION: none;}
A:visited {COLOR: #000000; TEXT-DECORATION: none}
A:active {COLOR: #3333ff; TEXT-DECORATION: none}
A:hover {COLOR: #ff0000; TEXT-DECORATION: none;}
    </style>
  </head>
  
  <body bgcolor="#70A4CF">
<fieldset  style="width: 90%;padding-left: 5%; margin-left: 5%;" >
   <legend style="color:#FFFFFF; font-size:18px; font-weight:200;">部门选择</legend>
    <div style=" margin-left:5%;">
       <%
          List list = (List)request.getAttribute("list"); 
          if(list.size()>0){
          Iterator it = list.iterator();
          int i=0;
          while(it.hasNext()){
          Zd zd = (Zd)it.next();
         %>
	      <a href="djxs.do?state=showryzlinfo&id=<%=zd.getId() %>" style=" width: 15%;" target="mainFrame">
	      <img src="images/user.png" border="0"><%=zd.getTypename() %></a>
	   <%i++; 
	   if(i%5==0){%>
	   <br><%}}
	    } else{%>
	       <center><img src="images/icon64_info.png" border="0">没有相应的村</center>
	    <%} %>
	    </div>
</fieldset>
<fieldset  style="width: 90%;padding-left: 5%;margin-left: 5%;" >
   <legend style="color:#FFFFFF; font-size:18px; font-weight:200;">查询</legend>
  <!--  <div style="border:1px; margin-left:10%; width:80px; height:80px; vertical-align:buttom ;text-align:rigth;  background-image:url(images/sousuo.gif) ; background-repeat:no-repeat;" ></div> -->
  <div style=" margin-left:5%;">
   <a href="searchList.do?state=showlist&cs=xg&sname=${xiangname }" target="mainFrame">
   <img src="images/sousuo.gif" border="0" width=55px height=55px>乡级高级查询</a>
   </div>
</fieldset>
</body>
</html>
